from solution import Solution
from generate_test_cases import generate_test_cases

def run_tests():
    """
    运行所有测试用例
    """
    solution = Solution()
    test_cases = generate_test_cases()
    
    for i, case in enumerate(test_cases, 1):
        print(f"\n测试用例 {i}:")
        print(f"描述: {case['description']}")
        print(f"输入: {case['input']}")
        
        result = solution.letterCasePermutation(case['input'])
        
        if 'expected' in case:
            print(f"预期输出: {case['expected']}")
            print(f"实际输出: {result}")
            is_correct = sorted(result) == sorted(case['expected'])
            print(f"测试{'通过' if is_correct else '失败'}")
        else:
            print(f"输出: {result}")
            print(f"输出数量: {len(result)}")
        
        print("-" * 50)

if __name__ == "__main__":
    run_tests()